<template>
  <div class="container">
    <p class="title">{{content.title}}</p>
    <p class="desc">{{content.content}}</p>
    <p class="date">{{content.timestamp * 1000 | fromNow}}<small style="float: right;"> {{content.day}}</small></p>
  </div>
</template>

<script>
export default {
  name: 'news',
  props: {
    content:Object
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.container{
  padding: 16px 0 20px;
  border-bottom: 1px solid #e6e6e6;
  background-color: #fff!important;
}
.container .title{
  font-size: 15px;
  font-weight: 500;
  color: #666;
  line-height: 23px;
}
.container .desc{
  font-size: 14px;
  color: #666;
  line-height: 20px;
  margin-top: 12px;
}
.container .date{
  font-size: 12px;
  color: #939393;
  line-height: 14px;
  margin-top: 16px;
}


</style>
